#!/bin/bash
sudo sed -i "s/us\.archive\.ubuntu\.com/mirrors\.aliyun\.com/g" /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -y apache2 libapache2-mod-php5 php5-cli php5-mysql php5-gd php5-curl git vim
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
sudo apt-get -y install mysql-server
sudo a2enmod rewrite headers
sudo service mysql5 restart
sudo sed -i "s/var\/www/vagrant/g" /etc/apache2/sites-enabled/000-default
sudo service apache2 restart



#sudo apt-get install python-software-properties

#sudo apt-add-repository ppa:phalcon/stable
#sudo apt-get update
#sudo apt-get install php5-phalcon
